package com.wx.Exception;

import com.wx.Result.ResultCodeEnum;
import lombok.Getter;

@Getter
public class SystemException extends RuntimeException{

    private Integer code;
    private String msg;


    public SystemException(ResultCodeEnum resultCodeEnum){
        super(resultCodeEnum.getMessage());
        this.code = resultCodeEnum.getCode();
        this.msg = resultCodeEnum.getMessage();
    }
}
